<html>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<head>
<title>Section 5.4.&nbsp; Chapter 5 Questions</title>
<link rel="STYLESHEET" type="text/css" href="images/style.css">
<link rel="STYLESHEET" type="text/css" href="images/docsafari.css">
<script type="text/javascript"><!--
google_ad_client = "pub-0203281046321155";
google_alternate_ad_url = "http://www.bookhtml.com/adbrite.htm";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="4867465545";
google_color_border = "FFFFFF";
google_color_link = "0000FF";
google_color_bg = "FFFFFF";
google_color_text = "000000";
google_color_url = "0000FF";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div STYLE="MARGIN-LEFT: 0.15in;">
<a href=learnphpmysql-CHP-5-SECT-3.html><img src="images/prev.gif" width="60" height="17" border="0" align="absmiddle" alt="Previous Page"></a>
<td align="right"><div STYLE="MARGIN-LEFT: 0.15in;">
<a href=learnphpmysql-CHP-6.html><img src="images/next.gif" width="60" height="17" border="0" align="absmiddle" alt="Next Page"></a>
</div></td></tr></table>
<br><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top"><a name="learnphpmysql-CHP-5-SECT-4"></a>
<h3 id="title-IDAKZ0EF" class="docSection1Title">5.4. Chapter 5 Questions</h3>
<dl class="docList">
<dt><br><p><span class="docPubcolor"><span class="docEmphStrong">Question 5-1</span>.</span></p></dt>
<dd><p class="docList">What's wrong with this function call?</p>
<pre>
&lt;?php

// define a function
function Response {
echo "Have a good day!&lt;br /&gt;&lt;br /&gt;";
}

// driving to work
echo "Are you going to merge? &lt;br /&gt;";
Response;

// at the office
echo "I need a status report on all your projects in the next 10 minutes for
my management meeting.&lt;br /&gt;";
Response;

// at the pub after work
echo "Did Bill get everything he needed today? He was sure crabby!&lt;br /&gt;";
Response;
?&gt;
</pre><br>
</dd>

<dt><br><p><span class="docPubcolor"><span class="docEmphStrong">Question 5-2</span>.</span></p></dt>
<dd><p class="docList">Define a function called <tt>toast</tt> that takes <tt>minutes</tt> as a parameter. The function prints "done."</p></dd>

<dt><br><P><span class="docPubcolor"><span class="docEmphStrong">Question 5-3</span>.</span></p></dt>
<dd><p class="docList">Call the <tt>toast</tt> function with <tt>5</tt> as a parameter.</p></dd>

<dt><BR><P><span class="docPubcolor"><span class="docEmphStrong">Question 5-4</span>.</span></p></dt>
<dd><p class="docList">What's the difference between using <tt>include()</tt> and <tt>require()</tt>?</P></dd>

<dt><br><p><span class="docPubcolor"><span class="docEmphStrong">Question 5-5</span>.</span></p></dt>
<dd><p class="docList">What is a function called when it is part of a class?</P></dd>
</dl>
<p class="docText">See the <a class="docLink" href="learnphpmysql-APP-A-SECT-5.html#learnphpmysql-APP-A-SECT-5">Appendix</a> for the answers to these questions.</p>

<a href="11011536.html"><img src="images/pixel.jpg" alt="" width="1" height="1" border="0"></a></TD></TR></table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div STYLE="MARGIN-LEFT: 0.15in;">
<a href=learnphpmysql-CHP-5-SECT-3.html><img src="images/prev.gif" width="60" height="17" border="0" align="absmiddle" alt="Previous Page"></a>
<td align="right"><div STYLE="MARGIN-LEFT: 0.15in;">
<a href=learnphpmysql-CHP-6.html><img src="images/next.gif" width="60" height="17" border="0" align="absmiddle" alt="Next Page"></a>
</div></td></tr></table>
</body></html>
